package com.zzs.gmshop.web;

import com.opensymphony.xwork2.ActionSupport;
import com.zzs.gmshop.entity.User;
import com.zzs.gmshop.manager.UserManager;

public class UserAction extends ActionSupport {

	private static final long serialVersionUID = 1L;
	
	private UserManager userManager;

	private User user;
	
	private String userPassword;
	
	public String addInput() {
		
		return "add_input";
	}
	
	public String add() {
		
		userManager.addUser(user);
		
		return "add_user_success";
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public void setUserManager(UserManager userManager) {
		this.userManager = userManager;
	}

	public String getUserPassword() {
		return userPassword;
	}

	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}
	
	
	
}
